<?php
/**
 * Created by PhpStorm.
 * User: sunzexin
 * Date: 2018/3/14
 * Time: 10:29
 */

namespace App;


use Illuminate\Database\Eloquent\Model;

class SystemNotify extends Model
{
    // 表名称
    protected $table = 'system_notify';
    // 开启自动时间戳
    public $timestamps = true;
    // 日期都存储为时间戳
    protected $dateFormat = 'U';

    public function systemNotifyContent()
    {
        return $this->hasMany('App\SystemNotifyContent', 'system_notify_id', 'id');
    }
}